Feature: Test de autenticación de usuario
File name: login.feature
Relative path: features/login.feature
When
Usuario busca un producto as "TV SONIC"
0s
// With Callbacks
When (/^Usuario busca un producto as "([^"]*)"$/, (arg1, callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
When (/^Usuario busca un producto as "([^"]*)"$/, (arg1, ) => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});
And
Usuario agrega el producto al carrito
0s
// With Callbacks
And (/^Usuario agrega el producto al carrito$/, (callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
And (/^Usuario agrega el producto al carrito$/, () => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});
When
Usuario busca un producto as "LAPTOP LENOVO"
0s
// With Callbacks
When (/^Usuario busca un producto as "([^"]*)"$/, (arg1, callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
When (/^Usuario busca un producto as "([^"]*)"$/, (arg1, ) => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});
And
Usuario agrega el producto al carrito
0s
// With Callbacks
And (/^Usuario agrega el producto al carrito$/, (callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
And (/^Usuario agrega el producto al carrito$/, () => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});
When
Usuario busca un producto as "PS5"
0s
// With Callbacks
When (/^Usuario busca un producto as "([^"]*)"$/, (arg1, callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
When (/^Usuario busca un producto as "([^"]*)"$/, (arg1, ) => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});
And
Usuario agrega el producto al carrito
0s
// With Callbacks
And (/^Usuario agrega el producto al carrito$/, (callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
And (/^Usuario agrega el producto al carrito$/, () => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});